package edu.del.teamknowledgebase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 好友关系表：用户之间的好友关系
 * @TableName friendship
 */
@TableName(value ="friendship")
@Data
public class Friendship implements Serializable {

    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private Long friendId;

    /**
     * 0-待接受，1-已好友，2-已拒绝
     */
    private Integer status;

    /**
     * 
     */
    private Date createTime;

    /**
     * 是否删除：0-未删除，1-已删除
     */
    private Integer isDeleted;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = -7828384546611929832L;
}